package com.h2.ref.server.user;

import java.util.Collection;

import com.h2.ref.server.user.model.User;

public interface IUserService {

   public User getActiveUser();
   
   public User getActiveUser(Boolean password);

   public void update(User user);

   public void delete(User user);
   
   public User find(User user);

   public User findByUserId(Integer userId);

   public User findByUserName(String string);
   
   public User findByEmail(String email);
   
   public User search(String name);

   public User addUser(User user);

   public User addRegisteredUser(User user, Boolean active);
   
   public Collection<User> getUsers();
   
   public Collection<IUserListener> getUserListeners();

}